.problemRow {
  display: grid;
  grid-template-columns: 80px 100px 1fr 50px;
  gap: 16px;
  padding: 12px 16px;
  align-items: center;
  min-height: 56px;
  border-bottom: 1px solid #f0f0f0;
}

.problemRow:last-child {
  border-bottom: none;
}

.problemRow:hover {
  background-color: #fafafa;
}

.problemRowHeader {
  display: grid;
  grid-template-columns: 74px 80px 100px 1fr 50px;
  gap: 16px;
  padding: 12px 16px;
  align-items: center;
  min-height: 56px;
  background-color: #fafafa;
  border-bottom: 1px solid #f0f0f0;
  font-weight: 500;
  color: #262626;
  width: 100%;
}

/* 固定列宽样式 */
.dragHeaderCell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  min-width: 74px;
  font-weight: 500;
  color: #262626;
}

.dragCell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  min-width: 50px;
}

.dragIcon {
  color: #999;
  cursor: grab;
  font-size: 20px;
  transition: color 0.2s ease;
  padding: 8px;
  border-radius: 4px;
}

.dragIcon:hover {
  color: #666;
  background-color: #f5f5f5;
}

.dragIcon:active {
  cursor: grabbing;
}

.dragHandle {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  cursor: grab;
  font-size: 16px;
  transition: color 0.2s ease;
  width: 60px;
  min-width: 60px;
}

.dragHandle:hover {
  color: #666;
}

.dragHandle:active {
  cursor: grabbing;
}

.orderCell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  min-width: 80px;
}

.problemIdCell {
  display: flex;
  align-items: center;
  font-family: 'Courier New', monospace;
  font-weight: 500;
  width: 100px;
  min-width: 100px;
}

.titleCell {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 200px; /* 确保标题列有足够的最小宽度 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.titleCell a {
  color: var(--primary-color);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.titleCell a:hover {
  text-decoration: underline;
}

/* 标题栏中的标题单元格特殊样式 */
.problemRowHeader .titleCell {
  color: #262626;
  font-weight: 500;
}

.actionCell {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end; /* 右对齐 */
  gap: 8px;
  width: 50px;
  min-width: 50px;
}

.actionButton {
  padding: 4px 8px;
  height: auto;
  font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .problemRow,
  .problemRowHeader {
    grid-template-columns: 50px 80px 1fr 100px;
    gap: 12px;
  }
} 